package com.jch.dm.chapter_3_template_method;

/**
 * @author: jch
 * 测试主类
 **/
public class Main {
    public static void main(String[] args) {
        AbstractDisplay d1 = new CharDisplay('H');
        AbstractDisplay d2 = new StringDisplay("speed!!");
        AbstractDisplay d3 = new StringDisplay("一二三四五六七八九十");
        d1.display();
        d2.display();
        d3.display();
    }
}
